<template>
    <div class="child-section">
        <Header>
            <div class="main">
				<van-form @submit="onSubmit" readonly>
					<div class="module">
						<h3>恭喜您通过预授信</h3>
						<van-field
						  v-model="comData.qymc"
						  name="企业名称"
						  label="企业名称"
						/>
						<van-field
						  v-model="comData.shtyxydm"
						  name="统一社会信用代码"
						  label="信用代码"
						/>
						<van-field
						  v-model="comData.fddbr"
						  name="法人姓名"
						  label="法人姓名"
						/>
						<!-- <van-field
						  v-model="comData.age"
						  name="法人年龄"
						  label="法人年龄"
						/> -->
						<van-field
						  v-model="comData.sxyged"
						  name="授信预估额度"
						  label="授信预估额度">
						  <template #input>
							  <van-tag color="#ffffff" text-color="#000000">{{comData.sxyged}}万</van-tag>
						  </template>
						</van-field>
						<van-notice-bar
						wrapable
						:scrollable="false"
						text="预授信额度不代表最终审批额度"
						/>
						<div class="button">
							<van-button round block type="info" native-type="submit">融资申请</van-button>
							<van-button round block plain type="default" native-type="button" @click="handleBack">返回</van-button>
						</div>
					</div>
				</van-form>
			</div>
        </Header>
    </div>
</template>

<script>
import Header from "../../components/header.vue";
import { Notify,Toast } from 'vant';
export default {
    name:'check',
    components: {
        Header
    },
    data() {
        return {
			comData:{
				qymc:undefined,
				shtyxydm:undefined,
				fddbr:undefined,
				age:undefined,
				sxyged:undefined
			},
			
        }
    },
	created() {
		this.comData = this.$route.query
		console.log(this.comData)
	},
    methods: {
        handleBack(){
            this.$router.back()
        },
		onSubmit(){
			/* Toast({
				duration: 5000, 
				closeOnClick: true,
				closeOnClickOverlay: true,
				message: '请拨打96588转8，联系齐商银行春风齐鑫贷客户专员进行业务办理。',
			}); */
			window.open("http://www.zbifc.com/sloan/dist/","_blank")
		}
    }
}
</script>
<style scoped lang="scss">
.main{
	width: 10rem;
	background: #083bb9;
	padding: 0 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	.module{
		width: calc(10rem - 40px);
		padding: 0.133333rem 0.133333rem;
		border-radius: 0.066666rem;
		margin-bottom: 0.133333rem;
		background-color: #fff;
		h3{
			margin: 0.133333rem 0 0.133333rem 0.133333rem;
			font-size: 32px;
		}
		.selection{
			padding: 0 0.346666rem;
			span{
				color: #f00;
			}
		}
		.button{
			display: flex;
			justify-content: space-around;
			align-items: center;
		}
	}
}
</style>
<style type="text/css">
.van-radio{
	margin-bottom: 0.133333rem;
}
.van-button{
	margin-top: 0.266666rem !important;
}
</style>